package com.zhang.authoritycenter.common.config;

import com.zhang.authoritycenter.common.model.serviceimpl.AuthorityMenuApiRelateServiceImpl;
import com.zhang.authoritycenter.common.model.serviceimpl.AuthorityRoleMenuRelateServiceImpl;
import com.zhang.authoritycenter.common.model.serviceimpl.AuthorityUserOrganizationRelateServiceImpl;
import com.zhang.authoritycenter.common.model.serviceimpl.AuthorityUserRoleRelateServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-20 14:01
 **/
@Configuration
public class ServiceConfig {

    @Bean
    public AuthorityRoleMenuRelateServiceImpl roleMenuRelateService(){
        return new AuthorityRoleMenuRelateServiceImpl();
    }

    @Bean
    public AuthorityUserRoleRelateServiceImpl userRoleRelateService(){
        return new AuthorityUserRoleRelateServiceImpl();
    }

    @Bean
    public AuthorityUserOrganizationRelateServiceImpl userOrganizationRelateService(){
        return new AuthorityUserOrganizationRelateServiceImpl();
    }


    @Bean
    public AuthorityMenuApiRelateServiceImpl menuApiRelateService(){
        return new AuthorityMenuApiRelateServiceImpl();
    }
}
